﻿using System;
using System.ServiceModel;

namespace Director
{
	class Program
	{
		static void Main(string[] args)
		{
			using (var host = new ServiceHost(typeof(DirectorService), new Uri("net.pipe://localhost")))
			{
				host.AddServiceEndpoint(typeof(IDirectorService), new NetNamedPipeBinding(), "txml-pipe");

				host.Open();
				
				Console.WriteLine("Service is available. Press <ENTER> to exit.");
				Console.ReadLine();

				host.Close();
			}
		}
	}
}
